/* Office转PDF模块样式 */
.office-pdf-container {
  min-height: 100vh;
  background: #f8fafc;
  padding: 2rem 0;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 300;
}

.conversion-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.upload-area {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #dbeafe;
}

.upload-container {
  text-align: center;
  padding: 2rem 1rem;
  border: 2px dashed #dbeafe;
  border-radius: 12px;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.upload-container:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.upload-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.upload-container h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
}

.upload-container p {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.upload-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 150px;
}

.upload-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3);
}

.upload-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.format-options {
  background: #eff6ff;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #dbeafe;
}

.format-options h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.option-item {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #dbeafe;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.option-item:hover {
  border-color: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
  display: none;
}

.option-item input[type="radio"]:checked ~ .option-content,
.option-item input[type="checkbox"]:checked {
  background: #dbeafe;
  border-color: #3b82f6;
}

.option-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.option-icon {
  font-size: 1.5rem;
}

.option-content span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e3a8a;
}

.files-section {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #dbeafe;
}

.files-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 1rem;
}

.files-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e3a8a;
}

.files-count {
  background: #dbeafe;
  color: #1e3a8a;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.files-list {
  margin-bottom: 2rem;
}

.file-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.file-item:hover:not(.converting) {
  border-color: #3b82f6;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.file-item.converting {
  background: #fffbeb;
  border-color: #f59e0b;
}

.file-item.converted {
  background: #f0fdf4;
  border-color: #10b981;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.file-icon {
  font-size: 2rem;
  min-width: 3rem;
}

.file-details {
  flex: 1;
}

.filename {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 0.25rem;
}

.file-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #64748b;
}

.file-actions {
  display: flex;
  gap: 0.5rem;
}

.convert-btn,
.download-btn,
.remove-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.convert-btn {
  background: #1e3a8a;
  color: white;
}

.convert-btn:hover {
  background: #3b82f6;
  transform: translateY(-2px);
}

.download-btn {
  background: #10b981;
  color: white;
}

.download-btn:hover {
  background: #059669;
  transform: translateY(-2px);
}

.remove-btn {
  background: #ef4444;
  color: white;
}

.remove-btn:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #64748b;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state p {
  font-size: 1.1rem;
}

.batch-actions {
  text-align: center;
  padding-top: 2rem;
  border-top: 2px solid #e2e8f0;
}

.batch-convert-btn {
  padding: 1rem 3rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.batch-convert-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3);
}

.batch-convert-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loading::after {
  content: '';
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #1e3a8a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-content {
    padding: 0 1rem;
  }

  .conversion-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }

  .content-header {
    margin-bottom: 2rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .file-item {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .file-actions {
    align-self: flex-end;
  }

  .files-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .batch-convert-btn {
    width: 100%;
  }
}